package animation6.view.zhaolixiang.com.viewanimation6

import android.animation.TypeEvaluator
import java.text.CharacterIterator

/**
 * Created by Administrator on 2017/12/24.
 */
class CharEvaluator:TypeEvaluator<Char> {
    override fun evaluate(fraction: Float, startValue: Char,
                          endValue: Char): Char {
        val startInt=startValue.toInt()
        val endInt=endValue.toInt()
        return (startInt+(endInt-startInt)*fraction).toInt().toChar()

    }
}